package com.mars.admin.entity;

import com.mars.admin.framework.listener.EntityChangeListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Table(value = "sys_quest", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "面试问题")
public class SysQuest extends BaseEntity  {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    @Schema(description = "问题ID")
    private Long id;

    @Schema(description = "问题编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column("quest_code")
    private String questCode;

    @Schema(description = "问题分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column("quest_name")
    private String questName;

    @Schema(description = "问题难度", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column("quest_difficulty")
    private String questDifficulty;

    @Schema(description = "问题内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column("quest_content")
    private String questContent;

    @Schema(description = "问题答案", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column("quest_answer")
    private String questAnswer;

    @Schema(description = "状态：0-停用，1-正常")
    @Column("status")
    private Integer status;



    @Schema(description = "备注")
    @Column("remark")
    private String remark;
}
